Filter hook 'option_{$option}'
in WP Core File wp-includes/option.php at line 247
Description
Filters the value of an existing option. The dynamic portion of the hook name, `$option`, refers to the option name.
Occurrences
Filename |
Line Number |
wp-includes/option.php |
247 |
Parameters
Type |
Name |
Description |
mixed |
$value |
Value of the option. If stored serialized, it will be unserialized prior to being returned. |
string |
$option |
Option name. |
PHP Doc
/**
* Filters the value of an existing option.
*
* The dynamic portion of the hook name, `$option`, refers to the option name.
*
* @since 1.5.0 As 'option_' . $setting
* @since 3.0.0
* @since 4.4.0 The `$option` parameter was added.
*
* @param mixed $value Value of the option. If stored serialized, it will be
* unserialized prior to being returned.
* @param string $option Option name.
*/